#include <string>
#include <iostream>
#include <sstream>

#include "baseEffect.h"

using namespace std;

baseEffect::baseEffect(string aName, string aDescription) : name(aName), description(aDescription) {}

string baseEffect::getName()
{
    return name;
}

string baseEffect::getDescription()
{
    return description;
}

baseCard* baseEffect::getHostCard()
{
    return hostCard;
}

void baseEffect::setHostCard(baseCard* aHostCard)
{
    hostCard = aHostCard;
}

string baseEffect::toString()
{
    stringstream out;

    out << "Effect: " << getName() << endl;
    out << getDescription() << endl;

    return out.str();
}

void baseEffect::toString(ostream &out)
{
    out << toString();
}

void baseEffect::toString(string &str)
{
    str = str + toString();
}
